package com.asset.dispoal.interestFormula.domain.db.mapper;

import com.asset.dispoal.interestFormula.domain.db.entity.InterestFormula;
import com.asset.dispoal.interestFormula.dto.InterestFormulaDetailRequest;
import com.asset.dispoal.interestFormula.dto.InterestFormulaResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tech.mhuang.pacebox.springboot.protocol.data.Page;

import java.util.List;


/**
 * @author qr
 * @date 2022/3/28$
 */
@Mapper
public interface InterestFormulaMapper {

    void insert(@Param("interestFormula") InterestFormula interestFormula);

    void update(@Param("interestFormula") InterestFormula interestFormula);

    void delete(@Param("id") String id);

    int queryCount(@Param("interestFormula") InterestFormula interestFormula);

    List<InterestFormulaResponse> queryPage(@Param("page") Page<InterestFormula> page);

    Integer insertDetail(InterestFormulaDetailRequest detailRequest);

    Integer deleteDetail(String id);
}
